import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/get_flood_prevention_data_by_duty_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/get_flood_prevention_data_by_duty_entity.g.dart';

@JsonSerializable()
class GetFloodPreventionDataByDutyEntity {
	int? companyId = 0;
	String? companyName = '';
	int? systemId = 0;
	String? systemName = '';
	List<GetFloodPreventionDataByDutyFloodPreventionDataVOS>? floodPreventionDataVOS = [];

	GetFloodPreventionDataByDutyEntity();

	factory GetFloodPreventionDataByDutyEntity.fromJson(Map<String, dynamic> json) => $GetFloodPreventionDataByDutyEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetFloodPreventionDataByDutyEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetFloodPreventionDataByDutyFloodPreventionDataVOS {
	String? monitoringItems = '';
	String? monitorCode = '';
	String? deviceCode = '';
	String? deviceName = '';
	int? value = 0;
	int? systemId = 0;
	int? companyId = 0;

	GetFloodPreventionDataByDutyFloodPreventionDataVOS();

	factory GetFloodPreventionDataByDutyFloodPreventionDataVOS.fromJson(Map<String, dynamic> json) => $GetFloodPreventionDataByDutyFloodPreventionDataVOSFromJson(json);

	Map<String, dynamic> toJson() => $GetFloodPreventionDataByDutyFloodPreventionDataVOSToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}